package com.lyz.collectionDemo.collection;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName ListDemo1
 * @Description ListAPI
 * @Author 2214361854
 * @Date 2022/2/21 16:05
 * @Version 1.0
 */
public class ListDemo1 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("sql");
        list.add("Mysql");
        list.add("1");
        list.add("Mysql");
        list.add("Mysql");
        list.remove("Mysql");
        System.out.println(list);
        list.clear();
        System.out.println(list);
    }
}
